<#assign module="member"/>

<@override name="header">
<link rel="stylesheet" href="${ctx}/assets/css/datetimepicker.css">
</@override>
<@override name="body">

	<div class="row">
	<div class="col-xs-12">
	    <div class="orders-navt col-xs-9" style="padding-left:0">
	   		<ul class="orders-nav">
	  			<li class="orders-notclick " style="width:90px;"><a class="tab" href="${ctx}/member/list">所有用户</a></li>
		  		<li class="orders-notclick" style="width:90px;"><a class="tab" href="${ctx}/member/elist">企业信息</a></li>
		  		<li class="orders-notclick" style="width:90px;"><a class="tab" href="${ctx}/member/gradelist">用户等级</a></li>
		  		<li class="orders-notclick" style="width:90px;"><a class="tab" href="${ctx}/member/lock">登录记录</a></li>
		  		<@shiro.hasPermission name='blacklist'>
		  			<li class="orders-notclick" style="width:90px;"><a class="tab" href="${ctx}/member/blacklist">黑名单</a></li>
		  		</@shiro.hasPermission>
		  		<@shiro.hasPermission name='phonevisit'>
		  			<li class="orders-click" style="width:90px;"><a class="tab" href="${ctx}/phonevisit/list">回访记录</a></li>
		  		</@shiro.hasPermission>
		  		<@shiro.isMainCompany>
				  <@shiro.hasPermission name='memberapply'>
				  	<#--
				  	<li class="orders-notclick" style="width:90px;"><a class="tab" href="${ctx}/memberapply/list">VIP申请</a></li>
				  	-->
				  </@shiro.hasPermission>
			  	</@shiro.isMainCompany>
			  	<@shiro.hasPermission name='receipt'>
			  		<li class="orders-notclick" style="width:90px;"><a class="tab" href="${ctx}/receipt/list">发票申请</a></li>
			   	</@shiro.hasPermission>
			   	<@shiro.hasPermission name='membernotice'>
			   		<li class="orders-notclick" ><a class="tab" href="${ctx}/membernotice/list">通知</a></li>
			   	</@shiro.hasPermission>
		    </ul>
		</div>
		<div class="col-xs-3" style="padding:0;">
			<button class="pull-right btn btn-primary" onclick="window.location='${ctx}/member/addPersonal';"><b>+</b>&nbsp;添加个人客户</button>
			<button class="pull-right btn btn-primary btn-primary-a" onclick="window.location='${ctx}/member/addEnterprise';"><b>+</b>&nbsp;添加企业客户</button>
  		</div>
	</div>
  	
</div>

<div class="tab-content">
	<div class="container-fluid">
  		<div class="row query-pad">
  			<div class="col-xs-11" style="padding: 0px;">
      			<div class="col-xs-4 input-query">
        			<span>客户姓名：</span>
        			<input type="text" class="form-control form-contb" id="khName" name="khName"  placeholder="请输入客户姓名">
        		</div>
        		<div class="col-xs-4 input-query">
        			<span>回访人名称：</span>
        			<input type="text" class="form-control form-contb" id="hfName" name="hfName"  placeholder="请输入回访人姓名">
        		</div>
        		<div class="col-xs-4 input-query" style="text-align: center;">
        		<span>回访时间：</span>	
        		<input type="text" class="form-control form-conthtl" id="startTime" name="startTime" placeholder="请输入开始时间"   value="${start?if_exists}">
			    <span style="width:5%">到</span>
			    <input type="text" class="form-control form-conthtl" id="endTime" name="endTime" placeholder="请输入结束时间" value="${end?if_exists}">	
        		</div>
    		</div>
    		<div class="col-xs-1"style="padding: 0px;">
    			<div class="input-query-bttom">
        			<button id="searchButton" class="btn btn-primary"></i>&nbsp;查询</button>
        		</div>
    		</div>
  		</div>
  		<br/>
  		
  	</div>
</div>

<div class="tabta-content">  	
	<table class="table table-condensed table-striped">
		<tbody>
			<tr>
				<th style='min-width:100px;'>回访时间</th>
				<th style='min-width:120px;'>工单号</th>
				<th style='min-width:120px;'>服务人员评价</th>
				<th style='min-width:120px;'>服务评价</th>
				<th style='min-width:120px;'>收费评价</th>
				<th style='min-width:120px;'>其他评价</th>
				<th style='min-width:120px;'>客户姓名</th>
				<th style='min-width:120px;'>回访人</th>
				<th style='min-width:120px;'>备注</th>
			</tr>
		</tbody>
	</table>
	<br>
	<div style="text-align:center" id="NoData"></div>
	</br>
	<ul class="pagination pull-left pagination-sm pageshow" style="display:none;">
		<li><a></a></li>
	</ul>
	<ul class="pagination pull-left pagination-sm pagedata" style="display:none;">
    </ul>
</div>
</@override>
<@override name="footer">
	<script type="text/javascript">
		window.daijia = {
			ctx:'${ctx}',
			userId:'<@shiro.principal property='id'/>'
		};
	</script>
	<script src="${ctx}/assets/js/pushmessage.js"></script>
	<script src="${ctx}/assets/js/bootstrap-datetimepicker.min.js"></script>
	<script src="${ctx}/assets/js/bootstrap-datetimepicker.zh-CN.js"></script>
	<script src="${ctx}/assets/js/jquery.paging.min.js"></script>
	<script src="${ctx}/assets/js/member/phonevisit.js"></script>
	<script type="text/javascript">
		$('#endTime').change(function(){
			  var begin=new Date($('#startTime').val().replace(/-/g,"/"));
		      var end=new Date($('#endTime').val().replace(/-/g,"/"));
		   	   if(begin!=null&&end!=null&&begin-end>=0){
	  				 $('#endTime').val("");
	  				 $.scojs_message("截止日期要在开始日期之后!", $.scojs_message.TYPE_ERROR);
		      	}
		 });
		  $('#startTime').change(function(){
			  var begin=new Date($('#startTime').val().replace(/-/g,"/"));
		      var end=new Date($('#endTime').val().replace(/-/g,"/"));
		   	   if(begin!=null&&end!=null&&begin-end>=0){
	  				 $('#endTime').val("");
	  				 $.scojs_message("开始日期要在截止日期之前!", $.scojs_message.TYPE_ERROR);
		      	}
		 });
	</script>
</@override>
<@extends name="../layout.ftl"/>